package com.jugheadzhou.client.service;

import com.jugheadzhou.client.service.fallback.TestRemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用服务
 *
 * @author jugheadzhou
 * @date 2021年10月01日
 */
@FeignClient(value = "cloud-openfeign-server", fallbackFactory = TestRemoteServiceFallback.class)
public interface TestRemoteService {

    /**
     * 测试远程调用服务
     *
     * @param name
     * @return
     */
    @GetMapping("test/info/{name}")
    String hello(@PathVariable("name") String name);

}
